package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.dating.dto.LikeDto;
import com.zhentao.service.LikeDatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/wx/like")
public class LikeDatingController {

    @Autowired
    private LikeDatingService likeDatingService;

    /**
     * 点赞和取消点赞
     * @param dto
     * @return
     */
    @PostMapping("auth/likeOperate")
    public ResponseResult likeOperate(@RequestBody LikeDto dto) {
        return likeDatingService.likeOperate(dto);
    }
}
